home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14588 < prev    next >
Encoding:
Text File  |  1996-08-05  |  819 b   |  39 lines

  1. Path: host1.einstein.com.ar!news
  2. From: jkohen@einstein.com.ar (Javier Kohen)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Passing multidemensional arrays to functions?
  5. Date: Sun, 31 Mar 1996 23:00:25 GMT
  6. Organization: Red Einstein
  7. Message-ID: <4jn84m$td5@host1.einstein.com.ar>
  8. References: <4islec$m41@matrix.mdn.com>
  9. Reply-To: jkohen@einstein.com.ar
  10. NNTP-Posting-Host: ppp-04.einstein.com.ar
  11. X-Newsreader: Forte Free Agent 1.0.82
  12.  
  13. John Schell <jschell@aggie.mdn.com> wrote:
  14.  
  15. >I am trying to pass a variable to a function but continue to get errors
  16. >no matter
  17. >what declaration I give the variable in the prototype statement.
  18.  
  19. >The variable:
  20. >    float variable[1][2]
  21.  
  22. >Can you make a sugestion as to what it should pass as?
  23.  
  24. >Thanks
  25. >John
  26.  
  27. void    ffunc(float f[1][2])
  28. {
  29. }
  30.  
  31. void    main()
  32. {
  33.     float    farray[1][2];
  34.  
  35.     ffunc(farray);
  36. }
  37.  
  38.  
  39.